package com.jt.controller;


import com.jt.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
@Component
@RestController
public class Usercontroller {


    //1.
    @Resource
    private UserService service;
    //2.
    @RequestMapping("getMsg")
    public String getMsg(){

        return service.getMsg();

    }

}
